package com.newtest.demos.Service;

import com.newtest.demos.pojo.LoginUser;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Optional;

public interface LoginService{
    LoginUser login(LoginUser loginUser);


    void registerUser(LoginUser loginUser);

    int updateUser(LoginUser loginUser);

    int deleteUser(LoginUser loginUser);


    String username(HttpServletRequest request);

    boolean isUsernameExists(String username);

    boolean isEmailExists(String email);


    List<LoginUser> findAllUser(String username);
}
